{% extends 'index.html' %}
{% block main-content %}
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">{{ askleave_obj.stuname}}的请假详细信息</h3>
        </div>

    </div>
    <form action="" method="post" class="col-md-9 col-md-offset-1">
        <p>姓名:
            <input type="text" name="stuname" class="form-control" value="{{ askleave_obj.stuname }}" disabled>
        </p>
        <p>学号:
            <input type="text" name="stunum" class="form-control" value="{{ askleave_obj.stunum }}" disabled>
        </p>
        <p>老师姓名:
            <input type="text" name="teaname" class="form-control" value="{{ askleave_obj.teaname}}" disabled>
        </p>
            <p>课程名称:
            <input type="text" name="course" class="form-control" value="{{ askleave_obj.course}}" disabled>
        </p>
            <p>申请时间:
            <input type="text" name="applyTime" class="form-control" value="{{ askleave_obj.applyTime}}" disabled>
        </p>
            <p>离开时间:
            <input type="text" name="leavetime" class="form-control" value="{{ askleave_obj.leavetime}}" disabled>
        </p>
                </p>
            <p>请假理由:
            <input type="text" name="stureason" class="form-control" value="{{ askleave_obj.stureason}}" disabled>
        </p>
                </p>
            <p>老师答复:
            <input type="text" name="teareason" class="form-control" value="{{ askleave_obj.teareason}}">
        </p>
        <p>审核情况:
                <select name="statue" id="" class="form-control">
                    {% for askleave02_obj in askleave_queryset %}
                        {% if askleave_obj.status == askleave02_obj %}
                            <option value="{{ askleave02_obj.status }}" selected>{{ askleave02_obj.status }}</option>
                        {% else %}
                            <option value="{{ askleave02_obj.status }}">{{ askleave02_obj.status }}</option>
                        {% endif %}
                    {% endfor %}
                </select>
        </p>
        <br>
            <input type="submit" value="编辑" class="form-control btn btn-primary col-md-2" style="width: 500px;left: 220px">
    </form>
{% endblock %}